package com.ruoyi.cms.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.cms.mapper.CmsSiteBannerMapper;
import com.ruoyi.cms.domain.CmsSiteBanner;
import com.ruoyi.cms.service.ICmsSiteBannerService;

/**
 * 考核模块轮播内容信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-09-14
 */
@Service
public class CmsSiteBannerServiceImpl implements ICmsSiteBannerService 
{
    @Autowired
    private CmsSiteBannerMapper cmsSiteBannerMapper;

    /**
     * 查询考核模块轮播内容信息
     * 
     * @param id 考核模块轮播内容信息主键
     * @return 考核模块轮播内容信息
     */
    @Override
    public CmsSiteBanner selectCmsSiteBannerById(Long id)
    {
        return cmsSiteBannerMapper.selectCmsSiteBannerById(id);
    }

    /**
     * 查询考核模块轮播内容信息列表
     * 
     * @param cmsSiteBanner 考核模块轮播内容信息
     * @return 考核模块轮播内容信息
     */
    @Override
    public List<CmsSiteBanner> selectCmsSiteBannerList(CmsSiteBanner cmsSiteBanner)
    {
        return cmsSiteBannerMapper.selectCmsSiteBannerList(cmsSiteBanner);
    }

    /**
     * 新增考核模块轮播内容信息
     * 
     * @param cmsSiteBanner 考核模块轮播内容信息
     * @return 结果
     */
    @Override
    public int insertCmsSiteBanner(CmsSiteBanner cmsSiteBanner)
    {
        return cmsSiteBannerMapper.insertCmsSiteBanner(cmsSiteBanner);
    }

    /**
     * 修改考核模块轮播内容信息
     * 
     * @param cmsSiteBanner 考核模块轮播内容信息
     * @return 结果
     */
    @Override
    public int updateCmsSiteBanner(CmsSiteBanner cmsSiteBanner)
    {
        return cmsSiteBannerMapper.updateCmsSiteBanner(cmsSiteBanner);
    }

    /**
     * 批量删除考核模块轮播内容信息
     * 
     * @param ids 需要删除的考核模块轮播内容信息主键
     * @return 结果
     */
    @Override
    public int deleteCmsSiteBannerByIds(Long[] ids)
    {
        return cmsSiteBannerMapper.deleteCmsSiteBannerByIds(ids);
    }

    /**
     * 删除考核模块轮播内容信息信息
     * 
     * @param id 考核模块轮播内容信息主键
     * @return 结果
     */
    @Override
    public int deleteCmsSiteBannerById(Long id)
    {
        return cmsSiteBannerMapper.deleteCmsSiteBannerById(id);
    }
}
